package com.rwaste.worker.service.impl;

import com.rwaste.worker.entity.Appeal;
import com.rwaste.worker.mapper.AppealMapper;
import com.rwaste.worker.service.AppealService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ly
 * @since 2021-09-25
 */
@Service
public class AppealServiceImpl extends ServiceImpl<AppealMapper, Appeal> implements AppealService {

    @Autowired
    private AppealMapper appealMapper;
    @Override
    public List<Appeal> findAllAppeal() {
        List<Appeal> list = appealMapper.findAllAppeal();
        return list;
    }

    @Override
    public boolean updateForm(String id) {
        boolean res  = appealMapper.updateFromByid(id);
        return res;
    }
}
